/*该文件专门用于暴露一个store对象*/
//引入createStore，专门创建用于redux中最核心的store
import {createStore, applyMiddleware} from 'redux'

import thunk from "redux-thunk";
import {composeWithDevTools} from "redux-devtools-extension";
import reducer from './reducers'
//暴露
export default createStore(
    //汇总reducer
    reducer, composeWithDevTools(applyMiddleware(thunk))
)